import { IsBoolean, IsOptional, IsString } from "class-validator";
import { PaginatedDto } from "@/common/dto/paginated.dto";

export class PageUserDto extends PaginatedDto {
    @IsString()
    deptId!: string;

    @IsOptional()
    @IsString()
    username?: string;

    @IsOptional()
    @IsString()
    phone?: string;

    @IsOptional()
    @IsBoolean()
    status?: boolean;
}
